import request from '@/utils/request';

/*

Author: factoryOpen
Date: 2025-06-01
Version: 1.0.0-draft.0
Web URL: www.factoryopen.net

*/


// 查询储位列表
export function listWarePosition(query) {
    return request({
        url: '/res/warePosition/list',
        method: 'get',
        params: query
    })
}

// 查询储位详细
export function getWarePosition(id) {
    return request({
        url: '/res/warePosition/' + id,
        method: 'get'
    })
}

// 新增储位
export function addWarePosition(data) {
    return request({
        url: '/res/warePosition',
        method: 'post',
        data: data
    })
}

// 修改储位
export function updateWarePosition(data) {
    return request({
        url: '/res/warePosition',
        method: 'put',
        data: data
    })
}

// 删除储位
export function delWarePosition(id) {
    return request({
        url: '/res/warePosition/' + id,
        method: 'delete'
    })
}



